#pragma once

class CWarning
{
    static DWORD WINAPI BeepThread(LPVOID lParam);
    CWarning();
    ~CWarning();
public:
    enum E_PLAY_TYPE
    {
        E_WAV=0,
        E_BEEP,
    };
    void Init(E_PLAY_TYPE etype);
    void Play(DWORD index);
    void Stop();

    static CWarning& Instance()
    {
        static CWarning T;
        return T;
    }
private:
    E_PLAY_TYPE m_type;
    HANDLE m_hBeep;
    bool   m_bIsBeeping;
};